use identification_workfile
keep sor wave suly roma descent_roma a_spendmore a_excludebars a_segregate a_demogthreat a_childforwel a_criminals

keep if wave=="d"

gen cat=0 if descent_roma==0 & roma==0
replace cat=1 if descent_roma==1 & roma==0
replace cat=2 if descent_roma==1 & roma==1
replace cat=-1 if descent_roma==0 & roma==1
label define cat 0 "No descent, no ID" 1 "Roma descent, no ID" 2 "Roma descent, Roma ID" -1 "No descent, Roma ID"
label values cat cat 

saveold figure_1_workfile.dta,  version(12)
